/*
 * 项目名称:    wms-server-jeecg
 * 创建人员:    DongPeng
 * 创建时间:    2023-12-12
 * copyright(c) 2022 无锡星智数服科技有限公司
 */
package org.jeecg.modules.business.doc.outbound.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 出库单查询条件
 *
 * @author DongPeng
 * @version 1.0.0
 * @date 2023-12-12
 * @description 类描述
 */
@Data
public class WmsOutReceiptQueryVO {

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**组织*/
    @Excel(name = "组织", width = 15)
    @ApiModelProperty(value = "组织")
    private String organization;
    /**单据类型*/
    @Excel(name = "单据类型", width = 15,dicCode = "outbound_type")
    @ApiModelProperty(value = "单据类型")
    @Dict(dicCode = "outbound_type")
    private String documentType;
    /**单据编号*/
    @Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private String documentCode;
    /**货主类型*/
    @Excel(name = "货主类型", width = 15)
    @ApiModelProperty(value = "货主类型")
    private String ownerType;
    /**业务日期*/
    @Excel(name = "业务日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "业务日期")
    private Date businessDate;
    /**货主*/
    @Excel(name = "货主", width = 15)
    @ApiModelProperty(value = "货主")
    private String owner;
    /**出库日期*/
    @Excel(name = "出库日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出库日期")
    private Date outDate;
    /**库存方向*/
    @Excel(name = "库存方向", width = 15)
    @ApiModelProperty(value = "库存方向")
    private String warehouseDirection;
    /**部门*/
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @ApiModelProperty(value = "部门")
    private String sysOrgCode;
    /**客商*/
    @Excel(name = "客户", width = 15)
    @ApiModelProperty(value = "客户")
    @Dict(dictTable = "wms_basic_customer",dicCode = "id",dicText = "code")
    private String customer;
    /**单据状态*/
    @Excel(name = "单据状态", width = 15)
    @ApiModelProperty(value = "单据状态")
    @Dict(dicCode = "document_status")
    private String documentStatus;
    /**仓库组*/
    @Excel(name = "仓库组id", width = 15)
    @ApiModelProperty(value = "仓库组id")
    @Dict(dictTable = "wms_basic_warehouse_group", dicText = "name", dicCode = "id")
    private String wmsBasicWarehouseGroupId;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**仓管员*/
    @Excel(name = "仓管员", width = 15)
    @ApiModelProperty(value = "仓管员")
    private String warehouseKeeper;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable = "sys_user",dicCode = "username",dicText = "realname")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**是否有子数据*/
    @Excel(name = "是否有子数据", width = 15)
    @ApiModelProperty(value = "是否有子数据")
    private Integer hasChild;
    /**逻辑删除*/
    @Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer delFlag;
    /**租户id*/
    @Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
    @ApiModelProperty(value = "出库任务id")
    private String wmsOutReceiptTaskId;
    @ApiModelProperty(value = "出库凭证/附件")
    private String voucher;
    @ApiModelProperty(value = "来源系统")
    private String originalSystem;

    @ApiModelProperty(value = "来源系统单号")
    private String originalSystemNumber;

    @ApiModelProperty(value = "请求人员")
    private String requestPerson;

    @ApiModelProperty(value = "任务编号")
    private String taskCode;

    @ApiModelProperty(value = "产线名称")
    private String productLine;

    @ApiModelProperty(value = "请求时间")
    private String requestTime;

    @ApiModelProperty(value = "站点编号")
    private String siteCode;

    @ApiModelProperty(value = "备料/退料区域")
    private String materialArea;

    @ApiModelProperty(value = "备料/退料站点")
    private String materialSite;

    /**供应商*/
    @Excel(name = "供应商", width = 15, dictTable = "wms_basic_supplier", dicText = "code", dicCode = "id")
    @Dict(dictTable = "wms_basic_supplier", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "供应商")
    private String supplier;

    /**在途归属*/
    @ApiModelProperty(value = "在途归属")
    private String inTransitOwnership;

    /**
     * 单据类型（多选数组）
     */
    private List<String> documentTypeList;
    /**所属任务code*/
    private String outReceiptTaskCode;
    @ApiModelProperty(value = "过账状态")
    private String transferSapStatus;

    /**
     * 批次号
     */
    @ApiModelProperty(value="批次号")
    private String batchCode;

    /**
     * 销售订单号
     */
    @ApiModelProperty(value="销售订单号")
    private String saleOrderNumber;

    /**
     * 生产工单号
     */
    @ApiModelProperty(value="生产工单号")
    private String productNumber;

    /**
     * 上游单据单号
     */
    @ApiModelProperty(value="上游单据单号")
    private String upstreamNumber;

    /**
     * 钢卷号
     */
    @ApiModelProperty(value="钢卷号")
    private String steelCoilNumber;

    /**
     * 单据状态集合
     */
    @ApiModelProperty(value="单据状态集合")
    private List<String> documentStatusList;

    /**
     * 调拨任务单
     */
    @ApiModelProperty("调拨任务单")
    private String transferApplicationOrder;

    /**
     * 当前用户拥有的仓库id权限集合
     */
    @ApiModelProperty(value="当前用户拥有的仓库id权限集合")
    private List<String> loginUserWarehouseIdList;

}
